<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: pepr3d::Segmentation Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpepr3d_1_1_segmentation.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classpepr3d_1_1_segmentation-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">pepr3d::Segmentation Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> used for automatically separating and coloring the model into regions based on the thickness of the model.  
 <a href="classpepr3d_1_1_segmentation.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_segmentation_8h_source.html">Segmentation.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for pepr3d::Segmentation:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpepr3d_1_1_segmentation.png" usemap="#pepr3d::Segmentation_map" alt=""/>
  <map id="pepr3d::Segmentation_map" name="pepr3d::Segmentation_map">
<area href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t..." alt="pepr3d::Tool" shape="rect" coords="0,0,133,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5717e5e9983faa1e33b9008a97aae787"><td class="memItemLeft" align="right" valign="top"><a id="a5717e5e9983faa1e33b9008a97aae787"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Segmentation</b> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;app)</td></tr>
<tr class="separator:a5717e5e9983faa1e33b9008a97aae787"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a992852fd1abddc360051ec6af862c75f"><td class="memItemLeft" align="right" valign="top"><a id="a992852fd1abddc360051ec6af862c75f"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_segmentation.html#a992852fd1abddc360051ec6af862c75f">getName</a> () const override</td></tr>
<tr class="memdesc:a992852fd1abddc360051ec6af862c75f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a short name, displayed e.g., in a side pane and tooltip. <br /></td></tr>
<tr class="separator:a992852fd1abddc360051ec6af862c75f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2c28c0bff05165c8283e3727e09f726"><td class="memItemLeft" align="right" valign="top"><a id="af2c28c0bff05165c8283e3727e09f726"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_segmentation.html#af2c28c0bff05165c8283e3727e09f726">getDescription</a> () const override</td></tr>
<tr class="memdesc:af2c28c0bff05165c8283e3727e09f726"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a description, displayed e.g., in a tooltip. <br /></td></tr>
<tr class="separator:af2c28c0bff05165c8283e3727e09f726"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e48ed1de1808a831027cea1bb3c4332"><td class="memItemLeft" align="right" valign="top"><a id="a6e48ed1de1808a831027cea1bb3c4332"></a>
virtual std::optional&lt; <a class="el" href="structpepr3d_1_1_hotkey.html">Hotkey</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_segmentation.html#a6e48ed1de1808a831027cea1bb3c4332">getHotkey</a> (const <a class="el" href="classpepr3d_1_1_hotkeys.html">Hotkeys</a> &amp;hotkeys) const override</td></tr>
<tr class="memdesc:a6e48ed1de1808a831027cea1bb3c4332"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an associated <a class="el" href="structpepr3d_1_1_hotkey.html" title="A hotkey, i.e., a keycode and modifiers (Ctrl)">Hotkey</a> or an empty value. Use hotkeys.findHotkey() method. <br /></td></tr>
<tr class="separator:a6e48ed1de1808a831027cea1bb3c4332"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af67898a59f818d71a97069b2fe62bd25"><td class="memItemLeft" align="right" valign="top"><a id="af67898a59f818d71a97069b2fe62bd25"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_segmentation.html#af67898a59f818d71a97069b2fe62bd25">getIcon</a> () const override</td></tr>
<tr class="memdesc:af67898a59f818d71a97069b2fe62bd25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a UTF-8 icon from an icon font. <br /></td></tr>
<tr class="separator:af67898a59f818d71a97069b2fe62bd25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd5aff018741e43604441d50701492fa"><td class="memItemLeft" align="right" valign="top"><a id="acd5aff018741e43604441d50701492fa"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_segmentation.html#acd5aff018741e43604441d50701492fa">isEnabled</a> () const override</td></tr>
<tr class="memdesc:acd5aff018741e43604441d50701492fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if enabled and can be selected, otherwise false. This should be a fast method, it is called every frame! <br /></td></tr>
<tr class="separator:acd5aff018741e43604441d50701492fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac823ffa67827629012a45f3ac9a22c72"><td class="memItemLeft" align="right" valign="top"><a id="ac823ffa67827629012a45f3ac9a22c72"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_segmentation.html#ac823ffa67827629012a45f3ac9a22c72">drawToSidePane</a> (<a class="el" href="classpepr3d_1_1_side_pane.html">SidePane</a> &amp;sidePane) override</td></tr>
<tr class="memdesc:ac823ffa67827629012a45f3ac9a22c72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called every frame on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a>. Draw to <a class="el" href="classpepr3d_1_1_side_pane.html" title="Right side of the user interface that displays options of the currently selected tool.">SidePane</a> from inside this method. <br /></td></tr>
<tr class="separator:ac823ffa67827629012a45f3ac9a22c72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba217ddc3fefb9f9a253bcaee39df3b2"><td class="memItemLeft" align="right" valign="top"><a id="aba217ddc3fefb9f9a253bcaee39df3b2"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_segmentation.html#aba217ddc3fefb9f9a253bcaee39df3b2">drawToModelView</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView) override</td></tr>
<tr class="memdesc:aba217ddc3fefb9f9a253bcaee39df3b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called every frame on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a>. Draw to <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a> from inside this method. <br /></td></tr>
<tr class="separator:aba217ddc3fefb9f9a253bcaee39df3b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c9ae1b970f2b19f7c8cc6d7009b106d"><td class="memItemLeft" align="right" valign="top"><a id="a7c9ae1b970f2b19f7c8cc6d7009b106d"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_segmentation.html#a7c9ae1b970f2b19f7c8cc6d7009b106d">onModelViewMouseDown</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:a7c9ae1b970f2b19f7c8cc6d7009b106d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users presses a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:a7c9ae1b970f2b19f7c8cc6d7009b106d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42edd9ea2cb784c82804d3e84dcde864"><td class="memItemLeft" align="right" valign="top"><a id="a42edd9ea2cb784c82804d3e84dcde864"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_segmentation.html#a42edd9ea2cb784c82804d3e84dcde864">onModelViewMouseMove</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:a42edd9ea2cb784c82804d3e84dcde864"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users moves mouse cursor over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. Note: This method is not called when the user is dragging the mouse! <br /></td></tr>
<tr class="separator:a42edd9ea2cb784c82804d3e84dcde864"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe22494520721c3d078daca8abbfd4ae"><td class="memItemLeft" align="right" valign="top"><a id="abe22494520721c3d078daca8abbfd4ae"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_segmentation.html#abe22494520721c3d078daca8abbfd4ae">onToolDeselect</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView) override</td></tr>
<tr class="memdesc:abe22494520721c3d078daca8abbfd4ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after user selects another tool. Note: It may also be called when a user selects the same tool again! <br /></td></tr>
<tr class="separator:abe22494520721c3d078daca8abbfd4ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8b133f64246862034299f64b38cd080"><td class="memItemLeft" align="right" valign="top"><a id="ac8b133f64246862034299f64b38cd080"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_segmentation.html#ac8b133f64246862034299f64b38cd080">onNewGeometryLoaded</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView) override</td></tr>
<tr class="memdesc:ac8b133f64246862034299f64b38cd080"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on EVERY <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after a new <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a> is loaded or imported. <br /></td></tr>
<tr class="separator:ac8b133f64246862034299f64b38cd080"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpepr3d_1_1_tool"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpepr3d_1_1_tool')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classpepr3d_1_1_tool.html">pepr3d::Tool</a></td></tr>
<tr class="memitem:a56cc05810dfb90d78b0c1388f710a445 inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a56cc05810dfb90d78b0c1388f710a445"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a56cc05810dfb90d78b0c1388f710a445">onModelViewMouseDrag</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event)</td></tr>
<tr class="memdesc:a56cc05810dfb90d78b0c1388f710a445 inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users drags a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:a56cc05810dfb90d78b0c1388f710a445 inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d6d4e593753eba998b2a6d6fb49c5af inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a3d6d4e593753eba998b2a6d6fb49c5af"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a3d6d4e593753eba998b2a6d6fb49c5af">onModelViewMouseUp</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event)</td></tr>
<tr class="memdesc:a3d6d4e593753eba998b2a6d6fb49c5af inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users releases a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:a3d6d4e593753eba998b2a6d6fb49c5af inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="aa1aae7ecebb6d2e63dfa61d08ff022ae"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#aa1aae7ecebb6d2e63dfa61d08ff022ae">onModelViewMouseWheel</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event)</td></tr>
<tr class="memdesc:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users scrolls mouse wheel over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a139c1e72bd9eada36ce660e1fbf10c6b inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a139c1e72bd9eada36ce660e1fbf10c6b"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a139c1e72bd9eada36ce660e1fbf10c6b">onToolSelect</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView)</td></tr>
<tr class="memdesc:a139c1e72bd9eada36ce660e1fbf10c6b inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after user selects it. Note: It may also be called when a user selects the same tool again! <br /></td></tr>
<tr class="separator:a139c1e72bd9eada36ce660e1fbf10c6b inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a2420df1e8a95c66a882a923158084020"></a>
virtual std::optional&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a2420df1e8a95c66a882a923158084020">safeIntersectMesh</a> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication, const ci::Ray ray) final</td></tr>
<tr class="memdesc:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an optional intersection (an index of a triangle) of a ci::Ray with current <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a>. This method is safe and if an exception occurs, an error dialog is automatically shown. <br /></td></tr>
<tr class="separator:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a2645ac765f26cbda2ab9c818a362912f"></a>
virtual std::optional&lt; <a class="el" href="structpepr3d_1_1_detailed_triangle_id.html">DetailedTriangleId</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a2645ac765f26cbda2ab9c818a362912f">safeIntersectDetailedMesh</a> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication, const ci::Ray ray) final</td></tr>
<tr class="memdesc:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an optional intersection (<a class="el" href="structpepr3d_1_1_detailed_triangle_id.html" title="Triangle ID in all detailed triangles Face index in mMeshDetailed faces;.">DetailedTriangleId</a>) of a ci::Ray with current <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a>. This method is safe and if an exception occurs, an error dialog is automatically shown. <br /></td></tr>
<tr class="separator:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff4584fe20f552ae3b7814ecab423768 inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="aff4584fe20f552ae3b7814ecab423768"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>safeComputeSdf</b> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication) final</td></tr>
<tr class="separator:aff4584fe20f552ae3b7814ecab423768 inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a753243eb08623cc0e4e742b9b80d6fe1"><td class="memItemLeft" align="right" valign="top"><a id="a753243eb08623cc0e4e742b9b80d6fe1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>reset</b> ()</td></tr>
<tr class="separator:a753243eb08623cc0e4e742b9b80d6fe1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2c81addb59679af3aad6753bfb3e187"><td class="memItemLeft" align="right" valign="top"><a id="ad2c81addb59679af3aad6753bfb3e187"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>computeSegmentation</b> ()</td></tr>
<tr class="separator:ad2c81addb59679af3aad6753bfb3e187"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ee801c12891b63645c44460692351f4"><td class="memItemLeft" align="right" valign="top"><a id="a2ee801c12891b63645c44460692351f4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>cancel</b> ()</td></tr>
<tr class="separator:a2ee801c12891b63645c44460692351f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeed45ad861dcf859e90b9b5d317655f1"><td class="memItemLeft" align="right" valign="top"><a id="aeed45ad861dcf859e90b9b5d317655f1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setSegmentColor</b> (const size_t segmentId, const glm::vec4 newColor)</td></tr>
<tr class="separator:aeed45ad861dcf859e90b9b5d317655f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ac2717aba7269a3eb01e1ec3c03331c17"><td class="memItemLeft" align="right" valign="top"><a id="ac2717aba7269a3eb01e1ec3c03331c17"></a>
<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>mApplication</b></td></tr>
<tr class="separator:ac2717aba7269a3eb01e1ec3c03331c17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7097b3a93fea80b798e8e0117d4ab2a0"><td class="memItemLeft" align="right" valign="top"><a id="a7097b3a93fea80b798e8e0117d4ab2a0"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>mNumberOfClusters</b> = 20.0f</td></tr>
<tr class="separator:a7097b3a93fea80b798e8e0117d4ab2a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b58e2e5f005ec47eb16cb65033b81ae"><td class="memItemLeft" align="right" valign="top"><a id="a9b58e2e5f005ec47eb16cb65033b81ae"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>mSmoothingLambda</b> = 30.0f</td></tr>
<tr class="separator:a9b58e2e5f005ec47eb16cb65033b81ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac28116b16a089414c90acaa13e1b767d"><td class="memItemLeft" align="right" valign="top"><a id="ac28116b16a089414c90acaa13e1b767d"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>mNumberOfSegments</b> = 0</td></tr>
<tr class="separator:ac28116b16a089414c90acaa13e1b767d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29b4f82176495128f046c4f5556b0ed0"><td class="memItemLeft" align="right" valign="top"><a id="a29b4f82176495128f046c4f5556b0ed0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mPickState</b> = false</td></tr>
<tr class="separator:a29b4f82176495128f046c4f5556b0ed0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af42e20289921819f50fcbc36d6e058f5"><td class="memItemLeft" align="right" valign="top"><a id="af42e20289921819f50fcbc36d6e058f5"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mGeometryCorrect</b> = true</td></tr>
<tr class="separator:af42e20289921819f50fcbc36d6e058f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab119390cf1e8b5f5ba33d112a3a1806c"><td class="memItemLeft" align="right" valign="top"><a id="ab119390cf1e8b5f5ba33d112a3a1806c"></a>
const bool *&#160;</td><td class="memItemRight" valign="bottom"><b>mSdfEnabled</b> = nullptr</td></tr>
<tr class="separator:ab119390cf1e8b5f5ba33d112a3a1806c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ce747a53afd47abaeff6f98070c8071"><td class="memItemLeft" align="right" valign="top"><a id="a4ce747a53afd47abaeff6f98070c8071"></a>
std::vector&lt; size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mNewColors</b></td></tr>
<tr class="separator:a4ce747a53afd47abaeff6f98070c8071"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b71215638c39a9381fbd8980e65986c"><td class="memItemLeft" align="right" valign="top"><a id="a4b71215638c39a9381fbd8980e65986c"></a>
std::vector&lt; glm::vec4 &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mSegmentationColors</b></td></tr>
<tr class="separator:a4b71215638c39a9381fbd8980e65986c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a213a470006808d715976b1d3ecf6de"><td class="memItemLeft" align="right" valign="top"><a id="a6a213a470006808d715976b1d3ecf6de"></a>
std::optional&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mHoveredTriangleId</b> = {}</td></tr>
<tr class="separator:a6a213a470006808d715976b1d3ecf6de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3344f323ffce78be2eaf73fca05be96"><td class="memItemLeft" align="right" valign="top"><a id="ad3344f323ffce78be2eaf73fca05be96"></a>
std::map&lt; size_t, std::vector&lt; size_t &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mSegmentToTriangleIds</b></td></tr>
<tr class="separator:ad3344f323ffce78be2eaf73fca05be96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3282ce65f09dbdf09eac1e83bec117d6"><td class="memItemLeft" align="right" valign="top"><a id="a3282ce65f09dbdf09eac1e83bec117d6"></a>
std::unordered_map&lt; size_t, size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mTriangleToSegmentMap</b></td></tr>
<tr class="separator:a3282ce65f09dbdf09eac1e83bec117d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> used for automatically separating and coloring the model into regions based on the thickness of the model. </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/tools/<a class="el" href="_segmentation_8h_source.html">Segmentation.h</a></li>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/tools/Segmentation.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacepepr3d.html">pepr3d</a></li><li class="navelem"><a class="el" href="classpepr3d_1_1_segmentation.html">Segmentation</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
